import Https from '@/utils/https'

// 字典映射详情列表
const queryDetailListReq = (params) => Https.get('/api/v1/mapping/detail/list', params)

// 绑定或解绑映射
// const queryBoundReq = (params) => Https.post('/api/hufu-web/mapping/detail/bound', params)
const queryBoundReq = (params) => Https.post('/api/v1/mapping/detail/bound', params)

// 维护
// const queryMaintainReq = (params) => Https.post('/api/hufu-web/mapping/detail/maintain', params, { json: true })
const queryMaintainReq = (params) => Https.post('/api/v1/mapping/detail/maintain', params, { json: true, needCode: true })

const queryGetLastTaskExecuteTimeReq = (params) => Https.get('/api/v1/mapping/dictionary/getLastTaskExecuteTime', params)

export {
  queryDetailListReq, queryBoundReq, queryMaintainReq, queryGetLastTaskExecuteTimeReq,
}
